package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user")
public class UserController {
    @GetMapping("/get/{id}")
    public String getUserById(@PathVariable("id")String id){
        return "Hello World Docker";
    }

    @GetMapping("/index")
    public String index(){
        System.out.print("1111");

        return "index我是你爸爸";
    }

}
